#!/bin/bash -
#===============================================================================
#
#          FILE: gitadd.sh
#
#         USAGE: ./gitadd.sh
#
#   DESCRIPTION: 
#
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR: YOUR NAME (), 
#  ORGANIZATION: 
#       CREATED: 2018年11月19日 19时10分02秒
#      REVISION:  ---
#===============================================================================

#set -o nounset                                  # Treat unset variables as an error

echo "执行的文件名：$0";
if [  "$1" ]; then
    message=$1
else
    message='ch'
fi
git add .
git commit -m $message
git push

